package com.cyt.work.wb.service;

import com.cyt.base.model.dto.ReturnResult;
import com.cyt.work.wb.model.po.WbBrand;
import com.cyt.work.wb.model.vo.WbBrandVo;
import com.cyt.sys.model.po.SysUser;
import com.cyt.sys.service.BaseService;

/**
 * 维保模块-品牌表Service层接口类
 *
 * @author shengQiang Yu
 * @date 2019-11-28 9:12:41
 */
public interface WbBrandService extends BaseService<WbBrand> {

    /**
     * 分页查询
     *
     * @param wbBrandVo 接受参数对象
     * @param pageNum          分页数
     * @param pageSize         每页显示条数
     * @return ReturnResult
     * @author shengQiang Yu
     * @date 2019-11-28 9:12:41
     */
    ReturnResult page(WbBrandVo wbBrandVo, int pageNum, int pageSize);

    /**
     * 根据ID获取数据
     *
     * @param id 主键ID
     * @return WbBrandVo
     * @author shengQiang Yu
     * @date 2019-11-28 9:12:41
     */
    WbBrandVo selectById(String id);

    /**
     * 添加或更新
     *
     * @param wbBrandVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author shengQiang Yu
     * @date 2019-11-28 9:12:41
     */
    ReturnResult addOrUpdate(WbBrandVo wbBrandVo, SysUser sysUser);

    /**
     * 根据条件逻辑删除
     *
     * @param wbBrandVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author shengQiang Yu
     * @date 2019-11-28 9:12:41
     */
    ReturnResult remove(WbBrandVo wbBrandVo, SysUser sysUser);

    /**
     * 根据条件物理删除
     *
     * @param wbBrandVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author shengQiang Yu
     * @date 2019-11-28 9:12:41
     */
    ReturnResult delete(WbBrandVo wbBrandVo, SysUser sysUser);
}